package com.business.api.official.toursism.websiteshop.service;

import com.business.api.official.toursism.websiteshop.dto.WebsiteShopApiDTO;
import com.business.api.official.toursism.websiteshop.from.WebsiteShopApiSaveFrom;
import com.business.api.official.toursism.websiteshop.from.WebsiteShopApiUpdateFrom;
import com.business.api.official.toursism.websiteshop.query.WebsiteShopApiPageQuery;
import com.business.api.official.toursism.websiteshop.query.WebsiteShopApiQuery;
import com.business.api.official.toursism.websiteshop.vo.*;
import com.business.api.official.toursism.websiteshop.vo.data.WebsiteShopApiDetailData;
import com.business.system.official.toursism.websiteshop.entity.WebsiteShop;
import com.seed.core.exception.ServiceException;
import com.seed.core.pojo.service.SeedApiService;

/**
 * @description 购物车
 * @author CodeGenerator
 * @date   2025-01-25
 * @version V1.0
 */
public interface WebsiteShopApiService extends SeedApiService<WebsiteShop>{

    /**
     * 持久化
     *
     * @param websiteShopFrom 需要保存的对象
     * @return id，如果保存失败返回空字符串
     * @throws ServiceException 业务层异常
     */
    WebsiteShopApiDTO save(WebsiteShopApiSaveFrom websiteShopFrom) throws ServiceException;

    /**
     * 部分更新
     *
     * @param websiteShopFrom 需要更新的对象
     * @return 是否成功
     * @throws ServiceException 业务层异常
     */
    WebsiteShopApiDTO updateSelectiveById(WebsiteShopApiUpdateFrom websiteShopFrom) throws ServiceException;

    /**
     * 获取全部
     *
     * @param query 查询条件
     * @return 详情VOList
     * @throws ServiceException 业务层异常
     */
    WebsiteShopApiDetailListVO listAll(WebsiteShopApiQuery query) throws ServiceException;

    /**
     * 简略对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的简略对象
     * @throws ServiceException 业务层异常
     */
    WebsiteShopApiBriefPageVO getBriefPageVO(WebsiteShopApiPageQuery query) throws ServiceException;

    /**
     * 详细对象条件查询
     *
     * @param query 查询条件
     * @return 查询出来的详细对象
     * @throws ServiceException 业务层异常
     */
    WebsiteShopApiDetailPageVO getDetailPageVO(WebsiteShopApiPageQuery query) throws ServiceException;
}
